package com.lenovo.smarttraffic.bean;

import android.support.v4.app.SupportActivity;

import java.io.Serializable;

/**
 * Created by Caleb.F
 * on 2019-12-27
 * at 14:30
 */
public class TrafficNewsBean implements Serializable {

    private String category;//类别：有些子View带图片，有些不带
    private String createTime;
    private String content;
    private String imageUrl;
    private String title;


    public TrafficNewsBean(String category, String createTime, String content, String title) {
        this.category = category;
        this.createTime = createTime;
        this.content = content;
        this.title = title;
    }

    public TrafficNewsBean(String category, String createTime, String content, String imageUrl, String title) {
        this.category = category;
        this.createTime = createTime;
        this.content = content;
        this.imageUrl = imageUrl;
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public TrafficNewsBean setCategory(String category) {
        this.category = category;
        return this;
    }

    public String getCreateTime() {
        return createTime;
    }

    public TrafficNewsBean setCreateTime(String createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getContent() {
        return content;
    }

    public TrafficNewsBean setContent(String content) {
        this.content = content;
        return this;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public TrafficNewsBean setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public TrafficNewsBean setTitle(String title) {
        this.title = title;
        return this;
    }

    @Override
    public String toString() {
        return "TrafficNewsBean{" +
                "category='" + category + '\'' +
                ", createTime='" + createTime + '\'' +
                ", content='" + content + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
